package net.hn.hnms.biz.gasext.dws.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.hn.hnms.biz.gasext.dws.domain.vo.DwdAqjcCdssDVo;
import net.hn.hnms.sys.common.mybatis.core.page.PageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@DS(value = "dwd")
public interface DwdAqjcCdssDMapper extends BaseMapper<DwdAqjcCdssDVo> {
    List<DwdAqjcCdssDVo> aqjkHisDataList(@Param("pageQuery") PageQuery pageQuery, @Param("type") String type, @Param("location") String location, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("mineCodeList") List<String> mineCodeList, @Param("mineCode") String mineCode);

    /**
     * 数据查询-测点值时间图
     * @param pointCode
     * @param startTime
     * @param endTime
     * @param mineCode
     * @return
     */
    List<DwdAqjcCdssDVo> trendByPointCode(@Param("pointCode") String pointCode, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("mineCode") String mineCode);

    /**
     * 查询安全监控历史数据
     * @param pageQuery
     * @param type
     * @param location
     * @param startTime
     * @param endTime
     * @param mineCode
     * @return
     */
    List<DwdAqjcCdssDVo> aqjkHisDataListByMineCode(@Param("pageQuery") PageQuery pageQuery, @Param("type") String type, @Param("location") String location, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("mineCode") String mineCode);
}
